package org.example;

import cn.hserver.core.ioc.annotation.Bean;
import cn.hserver.plugin.rpc.annotation.RpcService;

import java.util.concurrent.CompletableFuture;

@Bean
@RpcService
public class UserServiceImpl implements UserService {

    @Override
    public CompletableFuture<String> user() {
        final var objectCompletableFuture = new CompletableFuture<String>();
        objectCompletableFuture.complete("777");
        return objectCompletableFuture;
    }
}
